﻿package morn.core.managers
{
    import morn.editor.core.*;

    public class SkinProcess extends Object implements IPoolItem
    {
        public var comp:ISkinAbleContainer;
        public var skin:Object;

        public function SkinProcess()
        {
            return;
        }// end function

        public function dispose() : void
        {
            this.comp = null;
            this.skin = null;
            return;
        }// end function

        public function reset() : void
        {
            this.comp = null;
            this.skin = null;
            return;
        }// end function

        public function setData(param1:ISkinAbleContainer, param2:Object) : void
        {
            this.comp = param1;
            this.skin = param2;
            return;
        }// end function

        public function process() : void
        {
            if (this.comp)
            {
                this.comp.setSkin(this.skin);
            }
            return;
        }// end function

    }
}
